const ConstructionFormConfig = [{
  name: 'title',
  label: '本申请单标题',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '申请单标题',
},{
  name: 'projectName',
  label: '项目名称',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '项目名称',
}, {
  name: 'applicantName',
  type: 'Input',
  label: '申请人姓名',
  message: '不能为空',
  isRequired: true,
  placeholder: '姓名',
}, {
  name: 'departmentName',
  type: 'Input',
  label: '申请单位/部门',
  message: '不能为空',
  isRequired: true,
  placeholder: '部门',
}, {
  name: 'applicantPhone',
  label: '申请人联系电话',
  type: 'Input',
  message: '请输入11位有效的联系电话',
  isRequired: true,
  placeholder: '联系电话',
  pattern: new RegExp(/^1([38]\d|5[0-35-9]|7[3678])\d{8}$/, 'gi')
}, {
  name: 'beginTime',
  label: '计划开始时间',
  type: 'DateAndTimePicker',
  message: '必选',
  isRequired: true,
  placeholder: '日期和时间',
  pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
}, {
  name: 'endTime',
  label: '计划完成时间',
  type: 'DateAndTimePicker',
  message: '必选',
  isRequired: true,
  placeholder: '日期和时间',
  pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
}, {
  name: 'unitName',
  label: '项目建设方',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '建设方',
}, {
  name: 'contactName',
  label: '联系人',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '联系人姓名',
}, {
  name: 'operationArea',
  label: '作业区域',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '作业区域',
}, {
  name: 'projectDescription',
  label: '项目描述',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '项目描述',
}, {
  name: 'isInfluenceSystemRun',
  type: 'Radio+TextArea',
  label: '是否影响行李系统运行（是/否）',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isInfluenceSystemRunInfo',
  textAreaLabel: '影响行李系统运行说明',
  placeholder: '说明',
}, {
  name: 'isChangeSystem',
  type: 'Radio+TextArea',
  label: '是否对行李系统、行李安检设备设施进行变更、改造（是/否）',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isChangeSystemInfo',
  textAreaLabel: '对行李系统、行李安检设备设施进行变更、改造说明',
  placeholder: '说明',
}, {
  name: 'isHaveRisk',
  type: 'Radio+TextArea',
  label: '是否存在：用电、动火、高空等作业风险（是/否）',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveRiskInfo',
  textAreaLabel: '存在：用电、动火、高空等作业风险说明',
  placeholder: '说明',
}, {
  name: 'cooperateInfo',
  label: '需要行李系统、行李安检设备运行维保承包商的配合工作',
  type: 'TextArea',
  message: '不能为空',
  isRequired: true,
  placeholder: '配合工作说明',
}];

const RequestChangeFormConfig =[{
  name: 'title',
  label: '本申请单标题',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '申请单标题',
}, {
  name: 'applicantName',
  type: 'Input',
  label: '申请人姓名',
  message: '不能为空',
  isRequired: true,
  placeholder: '姓名',
}, {
  name: 'departmentName',
  type: 'Input',
  label: '申请单位/部门',
  message: '不能为空',
  isRequired: true,
  placeholder: '部门',
}, {
  name: 'systemClass',
  type: 'Radio',
  label: '系统分类',
  message: '必选',
  dataSource: [{
    value: '生产系统',
    label: '生产系统',
  },{
    value: '温备系统',
    label: '温备系统',
  }, {
    value: 'TTS系统',
    label: 'TTS系统',
  },{
    value: '其他',
    label: '其他',
  }],
  isRequired: true,
  placeholder: '分类',
}, {
  name: 'applicantPhone',
  label: '申请人联系电话',
  type: 'Input',
  message: '请输入11位有效的联系电话',
  isRequired: true,
  placeholder: '手机号',
  pattern: new RegExp(/^1([38]\d|5[0-35-9]|7[3678])\d{8}$/, 'gi')
}, {
  name: 'changeClass',
  type: 'Radio',
  label: '变更分类',
  message: '必选',
  dataSource: [{
    value: '硬件',
    label: '硬件',
  },{
    value: '软件',
    label: '软件',
  }, {
    value: '数据库',
    label: '数据库',
  },{
    value: '生产系统',
    label: '生产系统',
  }, {
    value: '配套',
    label: '配套',
  }, {
    value: '其他',
    label: '其他',
  }],
  isRequired: true,
  placeholder: '分类',
}, {
  name: 'changeProjectName',
  type: 'Input',
  label: '变更项目名称',
  message: '不能为空',
  isRequired: true,
  placeholder: '项目名称',
}, {
  name: 'beforeChangeProjectDescription',
  type: 'Input',
  label: '变更前项目描述',
  message: '不能为空',
  isRequired: true,
  placeholder: '描述',
}, {
  name: 'afterChangeDescription',
  type: 'Input',
  label: '变更后项目描述',
  message: '不能为空',
  isRequired: true,
  placeholder: '描述',
}, {
  name: 'influenceScope',
  type: 'Input',
  label: '影响范围',
  message: '不能为空',
  isRequired: true,
  placeholder: '说明',
}, {
  name: 'requestChangeDate',
  type: 'DatePicker',
  label: '申请变更日期',
  message: '必选',
  isRequired: true,
  placeholder: '日期',
  pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日$/ , 'gi')
}, {
  name: 'requestChangeTime',
  type: 'TimePicker',
  label: '申请变更时间',
  message: '必选',
  isRequired: true,
  placeholder: '时间',
  pattern: new RegExp( /^(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
}, {
  name: 'isPlanStop',
  type: 'Radio+TextArea',
  label: '是否计划停机',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isPlanStopInfo',
  textAreaLabel: '申请停机时间',
  placeholder: '说明',
}, {
  name: 'isInfluenceRun',
  type: 'Radio+TextArea',
  label: '是否影响运行',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isInfluenceRunInfo',
  textAreaLabel: '预计影响时间',
  placeholder: '说明',
}, {
  name: 'isNeedCooperate',
  type: 'Radio+TextArea',
  label: '是否需要IT外第三方配合',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isNeedCooperateInfo',
  textAreaLabel: '简述配合要求',
  placeholder: '说明',
}, {
  name: 'isHaveGaiyao',
  type: 'Radio+TextArea',
  label: '是否有《概要描述》',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveGaiyaoInfo',
  textAreaLabel: '概要描述',
  placeholder: '说明',
}, {
  name: 'isHaveCaozuo',
  type: 'Radio+TextArea',
  label: '是否有《操作步骤》',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveCaozuoInfo',
  textAreaLabel: '操作步骤',
  placeholder: '说明',
}, {
  name: 'isHaveFengxian',
  type: 'Radio+TextArea',
  label: '是否有《风险评估》',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveFengxianInfo',
  textAreaLabel: '风险评估',
  placeholder: '说明',
}, {
  name: 'isHaveHuitui',
  type: 'Radio+TextArea',
  label: '是否有回退计划',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveHuituiInfo',
  textAreaLabel: '回退计划',
  placeholder: '说明',
}, {
  name: 'isHaveYingji',
  type: 'Radio+TextArea',
  label: '是否有应急措施',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveYingjiInfo',
  textAreaLabel: '应急措施',
  placeholder: '说明',
}, {
  name: 'isHaveCeshi',
  type: 'Radio+TextArea',
  label: '是否有测试说明',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveCeshiInfo',
  textAreaLabel: '测试说明',
  placeholder: '说明',
}, {
  name: 'isHaveOtherFiles',
  type: 'Radio+TextArea',
  label: '是否有其他文档',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isHaveOtherFilesInfo',
  textAreaLabel: '其他文档说明',
  placeholder: '说明',
},
  // {
  //   name: 'onSiteDescription',
  //   type: 'TextArea',
  //   label: '变更实施现场情况描述',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '变更回顾阶段填写',
  //   enableChange: true,
  // }, {
  //   name: 'verifyContent',
  //   type: 'TextArea',
  //   label: '变更核实者描述',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '变更回顾阶段填写',
  //   enableChange: true,
  // }, {
  //   name: 'reviewCode',
  //   type: 'TextArea',
  //   label: '变更回顾代码',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '变更回顾阶段填写',
  //   enableChange: true,
  // }, {
  //   name: 'reviewExplain',
  //   type: 'TextArea',
  //   label: '变更回顾说明',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '变更回顾阶段填写',
  //   enableChange: true,
  // }, {
  //   name: 'reviewCloseCode',
  //   type: 'TextArea',
  //   label: '变更关闭代码',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '变更回顾阶段填写',
  //   enableChange: true,
  // }
];

const ExternalTestFormConfig = [{
  name: 'title',
  label: '本申请单标题',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '申请单名称',
}, {
  name: 'applicantName',
  type: 'Input',
  label: '申请人',
  message: '不能为空',
  isRequired: true,
  placeholder: '姓名',
}, {
  name: 'departmentName',
  type: 'Input',
  label: '申请单位/部门',
  message: '不能为空',
  isRequired: true,
  placeholder: '部门',
}, {
  name: 'applicantPhone',
  label: '申请人联系电话',
  type: 'Input',
  message: '请输入11位有效的联系电话',
  isRequired: true,
  placeholder: '手机号',
  pattern: new RegExp(/^1([38]\d|5[0-35-9]|7[3678])\d{8}$/, 'gi')
}, {
  name: 'files',
  label: '附件',
  type: 'File',
  message: '必须有附件',
  isRequired: true,
  placeholder: '附件',
}];

const ProjectTestConfig = [{
  name: 'title',
  label: '本申请单标题',
  type: 'Input',
  message: '不能为空',
  isRequired: true,
  placeholder: '申请单名称',
}, {
  name: 'applicantName',
  type: 'Input',
  label: '申请人',
  message: '不能为空',
  isRequired: true,
  placeholder: '姓名',
}, {
  name: 'departmentName',
  type: 'Input',
  label: '申请单位/部门',
  message: '不能为空',
  isRequired: true,
  placeholder: '部门',
}, {
  name: 'applicantPhone',
  label: '申请人联系电话',
  type: 'Input',
  message: '请输入11位有效的联系电话',
  isRequired: true,
  placeholder: '手机号',
  pattern: new RegExp(/^1([38]\d|5[0-35-9]|7[3678])\d{8}$/, 'gi')
}, {
  name: 'planTime',
  label: '测试日期/时间',
  type: 'DateAndTimePicker',
  message: '必选',
  isRequired: true,
  placeholder: '日期和时间',
  pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
}, {
  name: 'testAimAndDescription',
  label: '测试目的及内容描述',
  type: 'TextArea',
  message: '不能为空',
  isRequired: true,
  placeholder: '说明',
}, {
  name: 'isInfluenceSystemRun',
  type: 'Radio+TextArea',
  label: '是否影响系统正常运行',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isInfluenceSystemRunInfo',
  textAreaLabel: '影响系统正常运行说明',
  placeholder: '说明',
}, {
  name: 'isInfluenceThirdParty',
  type: 'Radio+TextArea',
  label: '是否会对第三方产生影响',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isInfluenceThirdPartyInfo',
  textAreaLabel: '对第三方产生影响的说明',
  placeholder: '说明',
}, {
  name: 'isNeedCoherentUnit',
  type: 'Radio+TextArea',
  label: '是否需航站楼管理部协调相关单位',
  isRequired: true,
  message: '必选',
  dataSource: [{
    value: '是',
    label: '是',
  },{
    value: '否',
    label: '否',
  }],
  valueShowTextArea: '是',
  textAreaName: 'isNeedCoherentUnitInfo',
  textAreaLabel: '需航站楼管理部协调相关单位的说明',
  placeholder: '说明',
}, {
  name: 'planTestStep',
  label: '计划测试步骤',
  type: 'TextArea',
  message: '不能为空',
  isRequired: true,
  placeholder: '说明',
}, {
  name: 'files',
  label: '附件',
  type: 'File',
  message: '必须有附件',
  isRequired: true,
  placeholder: '附件',
}];

const MaintainFormConfig = [
  {
    name: 'title',
    label: '本申请单标题',
    type: 'Input',
    message: '不能为空',
    isRequired: true,
    placeholder: '申请单标题',
  }, {
    name: 'applicantName',
    type: 'Input',
    label: '申请人姓名',
    message: '不能为空',
    isRequired: true,
    placeholder: '姓名',
  },
  // {
    // name: 'applicationDate',
    // type: 'Input',
    // label: '申请日期',
    // message: '日期格式必须为20XX-XX-XX',
    // isRequired: true,
    // placeholder: '20XX-XX-XX',
    // pattern: new RegExp( /([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8])))/ , 'gi')
  // },
  {
    name: 'applicantPhone',
    label: '申请人联系电话',
    type: 'Input',
    message: '请输入11位有效的联系电话',
    isRequired: true,
    placeholder: '联系电话',
    pattern: new RegExp(/^1([38]\d|5[0-35-9]|7[3678])\d{8}$/, 'gi')
  }, {
    name: 'departmentName',
    type: 'Input',
    label: '申请单位/部门',
    message: '不能为空',
    isRequired: true,
    placeholder: '部门',
  }, {
    name: 'beginTime',
    label: '计划开始时间',
    type: 'DateAndTimePicker',
    message: '必选',
    isRequired: true,
    placeholder: '日期和时间',
    pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
  }, {
    name: 'endTime',
    label: '计划完成时间',
    type: 'DateAndTimePicker',
    message: '必选',
    isRequired: true,
    placeholder: '日期和时间',
    pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
  }, {
    name: 'beginTimeConfirm',
    label: '开始时间确认',
    type: 'DateAndTimePicker',
    message: '必选',
    isRequired: true,
    placeholder: '日期和时间',
    pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
  }, {
    name: 'endTimeConfirm',
    label: '完成时间确认',
    type: 'DateAndTimePicker',
    message: '必选',
    isRequired: true,
    placeholder: '日期和时间',
    pattern: new RegExp( /^[1-9]\d{3}年(0[1-9]|1[0-2])月(0[1-9]|[1-2][0-9]|3[0-1])日\s+(20|21|22|23|[0-1]\d):[0-5]\d$/ , 'gi')
  }, {
    name: 'applicationReason',
    label: '申请事由',
    type: 'TextArea',
    message: '不能为空',
    isRequired: true,
    placeholder: '申请事由',
  }, {
    name: 'operationOverview',
    label: '操作概述',
    type: 'TextArea',
    message: '不能为空',
    isRequired: true,
    placeholder: '操作概述',
  }, {
    name: 'isInfluenceSystemRun',
    type: 'Radio+TextArea',
    label: '是否影响系统运行（是/否）',
    isRequired: true,
    message: '必选',
    dataSource: [{
      value: '是',
      label: '是',
    },{
      value: '否',
      label: '否',
    }],
    valueShowTextArea: '是',
    textAreaName: 'isInfluenceSystemRunInfo',
    textAreaLabel: '影响系统运行说明',
    placeholder: '说明',
  }, {
    name: 'isInfluenceThirdParty',
    type: 'Radio+TextArea',
    label: '是否会对第三方产生影响',
    isRequired: true,
    message: '必选',
    dataSource: [{
      value: '是',
      label: '是',
    },{
      value: '否',
      label: '否',
    }],
    valueShowTextArea: '是',
    textAreaName: 'isInfluenceThirdPartyInfo',
    textAreaLabel: '对第三方产生影响说明',
    placeholder: '说明',
  }, {
    name: 'isNeedEmergencyOperation',
    type: 'Radio+TextArea',
    label: '如有异常，是否需要采取应急操作',
    isRequired: true,
    message: '必选',
    dataSource: [{
      value: '是',
      label: '是',
    },{
      value: '否',
      label: '否',
    }],
    valueShowTextArea: '是',
    textAreaName: 'isNeedEmergencyOperationInfo',
    textAreaLabel: '采取应急操作说明',
    placeholder: '说明',
  },
  {
    name: 'isNeedEmergencyPrepare',
    type: 'Radio+TextArea',
    label: '如操作异常，是否需进行应急准备',
    isRequired: true,
    message: '必选',
    dataSource: [{
      value: '是',
      label: '是',
    },{
      value: '否',
      label: '否',
    }],
    valueShowTextArea: '是',
    textAreaName: 'isNeedEmergencyPrepareInfo',
    textAreaLabel: '应急准备说明',
    placeholder: '说明',
  },
  {
    name: 'isNeedTest',
    type: 'Radio+TextArea',
    label: '操作完成是否进行测试',
    isRequired: true,
    message: '必选',
    dataSource: [{
      value: '是',
      label: '是',
    },{
      value: '否',
      label: '否',
    }],
    valueShowTextArea: '是',
    textAreaName: 'isNeedTestInfo',
    textAreaLabel: '测试说明',
    placeholder: '说明',
  },
  {
    name: 'testResult',
    type: 'Radio',
    label: '测试结果',
    isRequired: true,
    message: '必选',
    dataSource: [{
      value: '是',
      label: '系统功能正常',
    },{
      value: '否',
      label: '系统功能缺失',
    }]
  },
  // {
  //   name: 'dutyShiftLeader',
  //   label: '行李中控室值班主管姓名',
  //   type: 'Input',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '行李中控室值班主管姓名',
  // },
  // {
  //   name: 'maintainLeader',
  //   label: '行李运维分管负责人',
  //   type: 'Input',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '行李运维分管负责人姓名',
  // },
  // {
  //   name: 'groupLeader',
  //   label: '申请单位/部门负责人',
  //   type: 'Input',
  //   message: '不能为空',
  //   isRequired: true,
  //   placeholder: '负责人姓名',
  // },
];


const formConfigs = [
  ConstructionFormConfig,
  RequestChangeFormConfig,
  ExternalTestFormConfig,
  ProjectTestConfig,
  MaintainFormConfig,
];

export {
  formConfigs
}
